<?php
function MSG($text,$url = '',$status = ''){
	message($text,$url,$status);
}
function resp($data){
	die(json_encode($data,JSON_UNESCAPED_UNICODE));
}
function tb($name){
	return tablename('junsion_wxtools_'.$name);
}
function update($name,$arr = '',$arr2 = ''){
	return pdo_update('junsion_wxtools_'.$name,$arr,$arr2);
}
function insert($name,$arr = ''){
	return pdo_insert('junsion_wxtools_'.$name,$arr);
}
function del($name,$arr = '',$op = 'and'){
	return pdo_delete('junsion_wxtools_'.$name,$arr,$op);
}
function get($sql){
	return pdo_fetch($sql);
}
function col($sql){
	return pdo_fetchcolumn($sql);
}
function getall($sql,$col = ''){
	if ($col) return pdo_fetchall($sql,array(),$col);
	return pdo_fetchall($sql);
}
